//
//  BTSession.h
//  ShovelBattle
//
//  Created by Jeoffrey Thirot on 14/03/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <GameKit/GameKit.h>
#import "JSONKit.h"

@interface BTSession : NSObject <GKSessionDelegate, GKPeerPickerControllerDelegate> {
    GKSession *mSession;
    NSMutableArray *mPeers;
    NSString *connectedPeer;
}

@property (nonatomic, retain) GKSession *mSession;
@property (nonatomic, retain) NSString *connectedPeer;
@property (nonatomic, retain) NSString *myName;
@property (nonatomic, retain) NSMutableArray *mPeers;

- (id)init;
- (void) sendData:(NSDictionary *)msg;
- (void) clearSession;

@end
